import 'package:framelib/config/route_config.dart';
import 'package:get/get.dart';
import 'package:module_business/module_my/view/edit_name_page.dart';
import 'package:module_business/module_my/view/edit_signature_page.dart';
import 'package:module_business/module_my/view/my_browse_records_page.dart';
import 'package:module_business/module_my/view/my_collection_page.dart';
import 'package:module_business/module_my/view/my_fans_page.dart';
import 'package:module_business/module_my/view/my_follow_page.dart';
import 'package:module_business/module_my/view/my_friends_page.dart';
import 'package:module_business/module_my/view/my_page.dart';
import 'package:module_business/module_my/view/my_visitors_page.dart';
import 'package:module_business/module_my/view/other_person_home_page.dart';
import 'package:module_business/module_my/view/profile_edit_page.dart';
import 'package:module_business/module_my/view/recharge_page.dart';
import 'package:module_business/module_my/viewmodel/edit_name_view_model.dart';
import 'package:module_business/module_my/viewmodel/edit_signature_view_model.dart';
import 'package:module_business/module_my/viewmodel/my_browse_records_view_model.dart';
import 'package:module_business/module_my/viewmodel/my_collection_view_model.dart';
import 'package:module_business/module_my/viewmodel/my_fans_view_model.dart';
import 'package:module_business/module_my/viewmodel/my_follow_view_model.dart';
import 'package:module_business/module_my/viewmodel/my_friends_view_model.dart';
import 'package:module_business/module_my/viewmodel/my_visitors_view_model.dart';
import 'package:module_business/module_my/viewmodel/other_person_home_view_model.dart';
import 'package:module_business/module_my/viewmodel/profile_edit_view_model.dart';
import 'package:module_business/module_my/viewmodel/recharge_view_model.dart';

class ModuleMyRoute {
  static final List<GetPage> getPages = [
    GetPage(
        name: RouteConfig.profileEditPage,
        page: () => ProfileEditPage(),
        binding:
        BindingsBuilder(() => [Get.lazyPut(() => ProfileEditViewModel())])),
    GetPage(
        name: RouteConfig.editSignaturePage,
        page: () => EditSignaturePage(),
        binding:
        BindingsBuilder(() => [Get.lazyPut(() => EditSignatureViewModel())])),
    GetPage(
        name: RouteConfig.editNamePage,
        page: () => EditNamePage(),
        binding:
        BindingsBuilder(() => [Get.lazyPut(() => EditNameViewModel())])),
    GetPage(
        name: RouteConfig.myCollectionPage,
        page: () => MyCollectionPage(),
        binding:
        BindingsBuilder(() => [Get.lazyPut(() => MyCollectionViewModel())])),
    GetPage(
        name: RouteConfig.myFansPage,
        page: () => MyFansPage(),
        binding:
        BindingsBuilder(() => [Get.lazyPut(() => MyFansViewModel())])),
    GetPage(
        name: RouteConfig.myFollwPage,
        page: () => MyFollwPage(),
        binding:
        BindingsBuilder(() => [Get.lazyPut(() => MyFollowViewModel())])),
    GetPage(
        name: RouteConfig.myFriendsPage,
        page: () => MyFriendsPage(),
        binding:
        BindingsBuilder(() => [Get.lazyPut(() => MyFriendsViewModel())])),
    GetPage(
        name: RouteConfig.myVisitorsPage,
        page: () => MyVisitorsPage(),
        binding:
        BindingsBuilder(() => [Get.lazyPut(() => MyVisitorsViewModel())])),

    GetPage(
        name: RouteConfig.myBrowseRecordsPage,
        page: () => MyBrowseRecordsPage(),
        binding:
        BindingsBuilder(() => [Get.lazyPut(() => MyBrowseRecordsViewModel())])),
    GetPage(
        name: RouteConfig.rechargePage,
        page: () => RechargePage(),
        binding:
        BindingsBuilder(() => [Get.lazyPut(() => RechargeViewModel())])),
    GetPage(
        name: RouteConfig.otherPersonHomePage,
        page: () => OtherPersonHomePage(),
        binding:
        BindingsBuilder(() => [Get.lazyPut(() => OtherPersonHomeViewModel())])),
    // GetPage(
    //     name: '/TestTwoPage',
    //     page: () => TestTwoPage(),
    //     binding: BindingsBuilder(() => Get.create(
    //           () {
    //             var testTwoViewModel = TestTwoViewModel();
    //             print(
    //                 'testTwoViewModel-->create,hash=${testTwoViewModel.hashCode}');
    //             viewModelHashCodes[
    //                     'TestTwoViewModel_${testTwoViewModel.hashCode}'] =
    //                 testTwoViewModel;
    //             return testTwoViewModel;
    //           },
    //           permanent: false,
    //         ))
    //     // binding: BindingsBuilder(() => [Get.lazyPut(() => TestTwoViewModel(),)])
    //     ),
  ];
}
